|
ultrasonic3 2.2.0
|
Go to the source code of this file.
Macros | |
| #define | CHIRP_FIRST_SENSOR_MODE (CH_MODE_TRIGGERED_TX_RX) |
| #define | CHIRP_OTHER_SENSOR_MODE (CH_MODE_TRIGGERED_RX_ONLY) |
| #define | CHIRP_TRIGGER_TYPE (CH_TRIGGER_TYPE_HW) |
| #define | CHIRP_ICU10201_MAX_RANGE_MM (750) /* maximum range, in mm for ICU10201 */ |
| #define | CHIRP_ICU20201_MAX_RANGE_MM (4000) /* maximum range, in mm for ICU20201 */ |
| #define | CHIRP_ICU30201_MAX_RANGE_MM (7000) /* maximum range, in mm for ICU30201 */ |
| #define | CHIRP_STATIC_REJECT_SAMPLES (0) |
| #define | CHIRP_TARGET_INT_FILTER (0) |
| #define | CHIRP_RX_HOLDOFF_SAMPLES (0) |
| #define | CHIRP_RX_PRETRIGGER_ENABLE (1) |
| #define | CHIRP_MAX_TARGETS (3) /* Maximum number of targets to detect */ |
| #define | CHIRP_THRESH_0_START (0) /* threshold 0 - must start at sample zero */ |
| #define | CHIRP_THRESH_0_LEVEL (2500) |
| #define | CHIRP_THRESH_1_START (40) /* threshold 1 */ |
| #define | CHIRP_THRESH_1_LEVEL (800) |
| #define | CHIRP_THRESH_2_START (70) /* threshold 2 */ |
| #define | CHIRP_THRESH_2_LEVEL (400) |
| #define | CHIRP_THRESH_3_START (100) /* threshold 3 */ |
| #define | CHIRP_THRESH_3_LEVEL (200) |
| #define | CHIRP_THRESH_4_START (160) /* threshold 4 */ |
| #define | CHIRP_THRESH_4_LEVEL (140) |
| #define | CHIRP_THRESH_5_START (200) /* threshold 5 */ |
| #define | CHIRP_THRESH_5_LEVEL (95) |
| #define | CHIRP_THRESH_6_START (240) /* threshold 6 */ |
| #define | CHIRP_THRESH_6_LEVEL (50) |
| #define | CHIRP_THRESH_7_START (0) /* threshold 7 (not used) */ |
| #define | CHIRP_THRESH_7_LEVEL (0) |
| #define | CHIRP_TX_SEG_CYCLES (640) /* Transmit segment - length (cycles) */ |
| #define | CHIRP_TX_SEG_PULSE_WIDTH (3) /* width of each cycle pulse */ |
| #define | CHIRP_TX_SEG_PHASE (8) /* tx phase */ |
| #define | CHIRP_TX_SEG_INT_EN (0) /* no interrupt when done */ |
| #define | CHIRP_RX_SEG_0_SAMPLES (1) /* Receive segment 0 - single sample */ |
| #define | CHIRP_RX_SEG_0_GAIN_REDUCE (24) /* reduce gain */ |
| #define | CHIRP_RX_SEG_0_ATTEN (1) /* use attenuation */ |
| #define | CHIRP_RX_SEG_0_INT_EN (0) /* no interrupt when done */ |
| #define | CHIRP_RX_SEG_1_SAMPLES (295) /* Receive segment 1 - remainder of measurement */ |
| #define | CHIRP_RX_SEG_1_GAIN_REDUCE (0) /* no gain reduction */ |
| #define | CHIRP_RX_SEG_1_ATTEN (0) /* no attenuation */ |
| #define | CHIRP_RX_SEG_1_INT_EN (1) /* generate interrupt when done (if eligible) */ |
| #define | CHIRP_SENSOR_ODR (CH_ODR_FREQ_DIV_8) |
| #define | CHIRP_MEAS_OPTIMIZE (1) /* if non-zero, meas segments will be optimized */ |
| #define | MEASUREMENT_INTERVAL_MS (100) |
| #define | DISPLAY_AMP_VALUE (1) /* if non-zero, show amplitude for detected target(s) */ |
| #define | DISPLAY_SAMPLE_NUM (1) /* if non-zero, show sample number for detected target(s) */ |
| #define | DISPLAY_MULTI_TARGET (1) |
| #define CHIRP_FIRST_SENSOR_MODE (CH_MODE_TRIGGERED_TX_RX) |
| #define CHIRP_ICU10201_MAX_RANGE_MM (750) /* maximum range, in mm for ICU10201 */ |
| #define CHIRP_ICU20201_MAX_RANGE_MM (4000) /* maximum range, in mm for ICU20201 */ |
| #define CHIRP_ICU30201_MAX_RANGE_MM (7000) /* maximum range, in mm for ICU30201 */ |
| #define CHIRP_MAX_TARGETS (3) /* Maximum number of targets to detect */ |
| #define CHIRP_MEAS_OPTIMIZE (1) /* if non-zero, meas segments will be optimized */ |
| #define CHIRP_OTHER_SENSOR_MODE (CH_MODE_TRIGGERED_RX_ONLY) |
| #define CHIRP_RX_HOLDOFF_SAMPLES (0) |
| #define CHIRP_RX_PRETRIGGER_ENABLE (1) |
| #define CHIRP_RX_SEG_0_ATTEN (1) /* use attenuation */ |
| #define CHIRP_RX_SEG_0_GAIN_REDUCE (24) /* reduce gain */ |
| #define CHIRP_RX_SEG_0_INT_EN (0) /* no interrupt when done */ |
| #define CHIRP_RX_SEG_0_SAMPLES (1) /* Receive segment 0 - single sample */ |
| #define CHIRP_RX_SEG_1_ATTEN (0) /* no attenuation */ |
| #define CHIRP_RX_SEG_1_GAIN_REDUCE (0) /* no gain reduction */ |
| #define CHIRP_RX_SEG_1_INT_EN (1) /* generate interrupt when done (if eligible) */ |
| #define CHIRP_RX_SEG_1_SAMPLES (295) /* Receive segment 1 - remainder of measurement */ |
| #define CHIRP_SENSOR_ODR (CH_ODR_FREQ_DIV_8) |
| #define CHIRP_STATIC_REJECT_SAMPLES (0) |
| #define CHIRP_TARGET_INT_FILTER (0) |
| #define CHIRP_THRESH_0_LEVEL (2500) |
| #define CHIRP_THRESH_0_START (0) /* threshold 0 - must start at sample zero */ |
| #define CHIRP_THRESH_1_LEVEL (800) |
| #define CHIRP_THRESH_1_START (40) /* threshold 1 */ |
| #define CHIRP_THRESH_2_LEVEL (400) |
| #define CHIRP_THRESH_2_START (70) /* threshold 2 */ |
| #define CHIRP_THRESH_3_LEVEL (200) |
| #define CHIRP_THRESH_3_START (100) /* threshold 3 */ |
| #define CHIRP_THRESH_4_LEVEL (140) |
| #define CHIRP_THRESH_4_START (160) /* threshold 4 */ |
| #define CHIRP_THRESH_5_LEVEL (95) |
| #define CHIRP_THRESH_5_START (200) /* threshold 5 */ |
| #define CHIRP_THRESH_6_LEVEL (50) |
| #define CHIRP_THRESH_6_START (240) /* threshold 6 */ |
| #define CHIRP_THRESH_7_LEVEL (0) |
| #define CHIRP_THRESH_7_START (0) /* threshold 7 (not used) */ |
| #define CHIRP_TRIGGER_TYPE (CH_TRIGGER_TYPE_HW) |
| #define CHIRP_TX_SEG_CYCLES (640) /* Transmit segment - length (cycles) */ |
| #define CHIRP_TX_SEG_INT_EN (0) /* no interrupt when done */ |
| #define CHIRP_TX_SEG_PHASE (8) /* tx phase */ |
| #define CHIRP_TX_SEG_PULSE_WIDTH (3) /* width of each cycle pulse */ |
| #define DISPLAY_AMP_VALUE (1) /* if non-zero, show amplitude for detected target(s) */ |
| #define DISPLAY_MULTI_TARGET (1) |
| #define DISPLAY_SAMPLE_NUM (1) /* if non-zero, show sample number for detected target(s) */ |
| #define MEASUREMENT_INTERVAL_MS (100) |